<?php

/* article/category.html */
class __TwigTemplate_b6263d36154433143857de8befc9f037706dfe56829fba8c059afe0aafa129b6 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("layout.html", "article/category.html", 1);
        $this->blocks = array(
            'web_title' => array($this, 'block_web_title'),
            'content' => array($this, 'block_content'),
            'script' => array($this, 'block_script'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "layout.html";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        $context["now_title"] = "分类管理";
        // line 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 4
    public function block_web_title($context, array $blocks = array())
    {
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "-";
        $this->displayParentBlock("web_title", $context, $blocks);
    }

    // line 5
    public function block_content($context, array $blocks = array())
    {
        // line 6
        echo "<!-- Main Container Start -->
<div class=\"main-container\">
    <!-- Top Bar Starts -->
    <div class=\"top-bar clearfix\">
        <div class=\"page-title\">
            <h4>
                <div class=\"fs1 iconfont icon-chuanboneirong\" aria-hidden=\"true\"></div>
                ";
        // line 13
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "</h4>
        </div>
    </div>
    <!-- Top Bar Ends -->

    <!-- Container fluid Starts -->
    <div class=\"container-fluid\">

        <!-- Spacer starts -->
        <div class=\"spacer-xs\">
            <!-- Row start -->
            <div class=\"row no-gutter\">
                <div class=\"col-md-12 col-sm-12 col-sx-12\">
                    <div class=\"panel panel-default\">
                        <div class=\"panel-heading\">
                            <h4>";
        // line 28
        echo twig_escape_filter($this->env, (isset($context["now_title"]) ? $context["now_title"] : null), "html", null, true);
        echo "</h4>
                            <ul class=\"links\">
                                <li>
                                    <a href=\"/article/infocategory\">
                                        <i class=\"fa iconfont icon-plus\"></i>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class=\"panel-body\">
                            <div class=\"table-responsive\">
                                <table class=\"table table-condensed table-striped table-bordered table-hover no-margin\">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>分类名称</th>
                                        <th>排序</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    ";
        // line 49
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["data"]) ? $context["data"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["a"]) {
            // line 50
            echo "                                    <tr>
                                        <td>";
            // line 51
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "id", array()), "html", null, true);
            echo "</td>
                                        <td>";
            // line 52
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "name", array()), "html", null, true);
            echo "</td>
                                        <td>";
            // line 53
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "sort", array()), "html", null, true);
            echo "</td>
                                        <td>
                                            <a href=\"/article/infocategory/id/";
            // line 55
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "id", array()), "html", null, true);
            echo "\" class=\"label label-info\" data-original-title=\"\">编辑</a>
                                            <a data-url=\"/article/delcategory/id/";
            // line 56
            echo twig_escape_filter($this->env, $this->getAttribute($context["a"], "id", array()), "html", null, true);
            echo "\" href=\"javascript:;\" class=\"label label-danger btn-del\" data-original-title=\"\">删除</a>
                                        </td>
                                    </tr>
                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['a'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 60
        echo "                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Row end -->
        </div>
        <!-- Spacer ends -->

    </div>
    <!-- Container fluid ends -->

</div>
<!-- Main Container Start -->

";
    }

    // line 79
    public function block_script($context, array $blocks = array())
    {
        // line 80
        echo "<script>
    \$('.btn-del').click(function(){
        var url = \$(this).attr('data-url');
        //询问框
        layer.confirm('是否要删除这个分类？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            location.href = url;
        }, function(){

        });
    })



</script>
";
    }

    public function getTemplateName()
    {
        return "article/category.html";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  153 => 80,  150 => 79,  129 => 60,  119 => 56,  115 => 55,  110 => 53,  106 => 52,  102 => 51,  99 => 50,  95 => 49,  71 => 28,  53 => 13,  44 => 6,  41 => 5,  33 => 4,  29 => 1,  27 => 2,  11 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("{% extends \"layout.html\" %}
{% set now_title = '分类管理'%}

{% block web_title %}{{ now_title }}-{{ parent()}}{% endblock%}
{% block content%}
<!-- Main Container Start -->
<div class=\"main-container\">
    <!-- Top Bar Starts -->
    <div class=\"top-bar clearfix\">
        <div class=\"page-title\">
            <h4>
                <div class=\"fs1 iconfont icon-chuanboneirong\" aria-hidden=\"true\"></div>
                {{ now_title }}</h4>
        </div>
    </div>
    <!-- Top Bar Ends -->

    <!-- Container fluid Starts -->
    <div class=\"container-fluid\">

        <!-- Spacer starts -->
        <div class=\"spacer-xs\">
            <!-- Row start -->
            <div class=\"row no-gutter\">
                <div class=\"col-md-12 col-sm-12 col-sx-12\">
                    <div class=\"panel panel-default\">
                        <div class=\"panel-heading\">
                            <h4>{{ now_title }}</h4>
                            <ul class=\"links\">
                                <li>
                                    <a href=\"/article/infocategory\">
                                        <i class=\"fa iconfont icon-plus\"></i>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class=\"panel-body\">
                            <div class=\"table-responsive\">
                                <table class=\"table table-condensed table-striped table-bordered table-hover no-margin\">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>分类名称</th>
                                        <th>排序</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {% for a in data %}
                                    <tr>
                                        <td>{{ a.id }}</td>
                                        <td>{{ a.name }}</td>
                                        <td>{{ a.sort }}</td>
                                        <td>
                                            <a href=\"/article/infocategory/id/{{ a.id}}\" class=\"label label-info\" data-original-title=\"\">编辑</a>
                                            <a data-url=\"/article/delcategory/id/{{ a.id}}\" href=\"javascript:;\" class=\"label label-danger btn-del\" data-original-title=\"\">删除</a>
                                        </td>
                                    </tr>
                                    {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Row end -->
        </div>
        <!-- Spacer ends -->

    </div>
    <!-- Container fluid ends -->

</div>
<!-- Main Container Start -->

{% endblock%}

{% block script%}
<script>
    \$('.btn-del').click(function(){
        var url = \$(this).attr('data-url');
        //询问框
        layer.confirm('是否要删除这个分类？', {
            btn: ['确定','取消'] //按钮
        }, function(){
            location.href = url;
        }, function(){

        });
    })



</script>
{% endblock%}

", "article/category.html", "E:\\xampp\\htdocs\\admin\\views\\article\\category.html");
    }
}
